﻿<%@ Page Language="C#" MasterPageFile="~/ffl/ffl.master" AutoEventWireup="true" CodeFile="topplayers.aspx.cs" Inherits="ffl_anonymous_topplayers" Title="Untitled Page" %>
<%@ Register src="../anonymous/webusercontrols/PlayerDetails.ascx" tagname="PlayerDetails" tagprefix="Anonymous" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <form runat="server">
        <asp:Repeater runat="server" ID="PositionRepeater" OnItemDataBound="PositionRepeater_ItemDataBound">
            <HeaderTemplate>
                <table width="100%">
                    <tr>
                        <td align="center" class="mainheader">
                            <asp:Label runat="server" ID="TeamNamelabel"></asp:Label>
                        </td>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td align="center" class="tableheader">
                        <%# DataBinder.Eval(Container.DataItem, "PositionName") %>s
                    </td>
                </tr>
                <asp:HiddenField runat="server" ID="PositionIdHidden" Value='<%# DataBinder.Eval(Container.DataItem, "Id") %>' />
                <asp:Repeater runat="server" ID="PlayerPositionRepeater">
                    <ItemTemplate>
                        <tr>
                            <td align="center">
                                <Anonymous:PlayerDetails runat="server" ID="PlayerDetailsWUC" 
                                    PlayerId='<%# DataBinder.Eval(Container.DataItem, "PlayerId") %>' 
                                    HidePosition="True" 
                                    />    
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
    </form>
</asp:Content>

